<template>
    <el-card shadow="never" class="aui-card--fill">
      <div class="mod-wms__stock}">
        <wms-form v-model="dataForm" :formList="formList" :table-column="tableColumn" :advanced="advanced"
          @check-change="checkChange" @changeAdvance="changeAdvance" @getDataList="getDataList" @getReset="getReset">
          <el-form-item>
            <el-button type="primary" plain @click="exportHandle">超期导出
            </el-button>

          </el-form-item>
        </wms-form>
        <wms-table ref="wmsTable" class="stockTable" v-model="dataForm" :page="page" :total="total" :limit="limit"
          :tableData="dataList" :table-column="column" :module-options="mixinViewModuleOptions"
          :dataListLoading="dataListLoading" :showSelection="true" @selectChangeHandle="dataListSelectionChangeHandle"
          @pageSizeChangeHandle="pageSizeChangeHandle" @pageCurrentChangeHandle="pageCurrentChangeHandle"
          @changeLockSt="changeLockSt" />
      </div>
    </el-card>
  </template>
  
  <script>
  import mixinViewModule from "@/mixins/view-module";
  import debounce from "lodash/debounce";
  import { formList, tableColumn } from './config'
  import wmsTable from '@/components/wms-table'
  import wmsForm from '@/components/wms-form'
  export default {
    mixins: [mixinViewModule],
    data() {
      return {
        mixinViewModuleOptions: {
          getDataListURL: "/wms/stockoverdue/expiryPage",
          getDataListIsPage: true,
          exportURL: "/wms/stockoverdue/expiry-export",
          deleteURL: "/wms/stockoverdue",
          deleteIsBatch: true,
          deleteIsBatchKey: 'stockId',
          
        },
        dataForm: {
          spuNo: '',
          spuName: '',
          contNo: '',
          curPosition: ''
        },
        formList,
        tableColumn,
        column: [],
        advanced: false,
      };
    },
    components: {
      wmsTable,
      wmsForm
    },
    methods: {

    }
  }
  </script>
  <style scoped lang="scss">
  /* 隐藏表头的全选框 */
  /* ::v-deep .stockTable thead .el-table-column--selection .cell {
    display: none;
  } */
  </style>
  